home *** CD-ROM | disk | FTP | other *** search
-
-
- Motif Clipboard and Xt Selection Example for Cut & Paste
-
-
- This is a simple demo of cut & paste. This demo displays
- a molecule from a ".mol" file. It can only display
- one molecule at a time. Because of this, there is
- no selection box needed to cut and copy the data -
- the entire molecule is cut or copied. The left mouse
- button rotates the molecule. Data can be found in the
- molecules directory.
-
- The cut and paste is found in docut*.c. The format
- passed is "STRING" otherwise known as XA_STRING...
- it's just the ascii text describing the molecule.
-
- docut_motif.c is the Motif clipboard version.
- docut_xt.c is the Xt version using the X clipboard.
-
- The executables created here interact with each other.
- The Motif clipboard knows how to interact with the
- X clipboard. This demo has no visible text worth
- selecting, so it doesn't use the Primary Transfer
- or Primary Selection.
-
- If you have another program that uses the Motif clipboard
- or the X clipboard and accepts data
- as a string, you can paste the molecule into
- that program to see the ascii text. Try this
- with the X clipboard provided in ../Xclipboard.
-
- Run a couple of copies of the program. Try reading
- in different molecules, rotate them, copy, cut,
- and paste into different windows.
-